<template>
  <div class="dashboard-container">
    <div class="app-container">
      <page-tools>
        <template #after>
          <el-button size="small" type="primary">添加权限</el-button>
        </template>
      </page-tools>

      <el-table
        row-key="id"
        :data="list"
        border
        stripe
      >
        <el-table-column
          v-for="(col,index) in columns"
          :key="index"
          :prop="col.prop"
          :label="col.label"
          :align="col.align"
        >
          <template slot-scope="{row}">
            <el-tag v-if="col.prop === 'code'">{{ row.code }}</el-tag>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {

}
</script>

<style>

</style>
